/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package upc.jfactory.scp.bl.controller;

import java.util.ArrayList;
import java.util.List;
import upc.jfactory.scp.jpa.bean.Menu;
import upc.jfactory.scp.jpa.controlador.MenuJpaController;


/**
 *
 * @author Marco
 */
public class MenuController {

    public List<Menu> listarmenus(char id)
    {

        List<Menu> listaMenu = new ArrayList<Menu>();
        
        try{
                MenuJpaController menuJpaController= new MenuJpaController();
                listaMenu=menuJpaController.findMenuxgrupo(id);
              
		}
        finally{
		return listaMenu;}

    }


}
